package com.wpf.test02;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.Period;

public class demo01 {
    public static void main(String[] args) {
        LocalDate start = LocalDate.of(2001,8,1);
        LocalDate end = LocalDate.of(2001,6,1);

        Period period = Period.between(start,end);
        System.out.println(period.getYears());
        System.out.println(period.getMonths());
        System.out.println(period.getDays());
    }
}
